package cn.lin.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: Mr.s huang
 * @Date: 2024/12/3
 * uni-app 头部渲染所需字段
 */
@Setter
@Getter
public class HeaderVO {

    private String className;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date beginDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date endDate;

    private String username;

    // 当前的周数
    private Long currentWeek;

    // 总周数
    private Long totalWeek;

    // 当前课堂的人数
    private Integer studentCount;

    @Override
    public String toString() {
        return "HeaderVO{" +
                "className='" + className + '\'' +
                ", beginDate=" + beginDate +
                ", endDate=" + endDate +
                ", username='" + username + '\'' +
                ", currentWeek=" + currentWeek +
                ", totalWeek=" + totalWeek +
                ", studentCount=" + studentCount +
                '}';
    }
}
